<?php

namespace app\api\validate;

use think\Validate;

class SupplierReconciliationValidate extends Validate
{
    use ValidateModelExist;

    protected $rule = [
        'supplier_id' => 'require|exist:supplier',
        'set_account_id' => 'require|exist:setAccount',
        'account_type_id' => 'require|exist:accountType',
        'business_time' => 'require',
        'amount' => 'require'];

    protected $scene = [
        'adjustment'  =>  ['supplier_id','amount', 'business_time'],
    ];
}
